<?php

$parentId=getParameter("parentId");


if ($parentId==null)
{

    header("Location: ".addParameter("parentId","NULL"));
}
$op=" = ";
if ($parentId==null || $parentId=="NULL") {
    $parentId="NULL";
    $op=" is ";
}
    $sSql="SELECT
evigie_ao_inquery_status.id
FROM `evigie_ao_inquery_status`
WHERE
evigie_ao_inquery_status.parentId $op $parentId";

//echo $sSql."<br/>";
$rs=$GLOBALS["conn"]->Execute($sSql);
while ( !$rs->EOF)  {
    $id=$rs->fields["id"];

?>

    <script type="text/javascript">
        $( "a[href='evigie_ao_inquery_statusedit.php?id=<?=$id?>']" ).attr("href","evigie_ao_inquery_statusedit.php?id=<?=$id?>&parentId=<?=$parentId?>");
        $( "a[href='evigie_ao_inquery_statusview.php?id=<?=$id?>']" ).attr("href","evigie_ao_inquery_statusview.php?id=<?=$id?>&parentId=<?=$parentId?>");
       // $( "a[href='evigie_ao_inquery_statusview.php?id=<?=$id?>']" ).attr("href","evigie_ao_inquery_statusview.php?id=<?=$id?>&parentId=<?=$parentId?>");
    </script>
<?php
$rs->MoveNext();
}
    ?>



<script type="text/javascript">
    $( "a[href='evigie_ao_inquery_statusadd.php']" ).attr("href","evigie_ao_inquery_statusadd.php?&parentId=<?=$parentId?>");
    $( "a[id='deleteLink']" ).attr("onclick","ew_SubmitSelected(document.fevigie_ao_inquery_statuslist, 'evigie_ao_inquery_statusdelete.php?parentId=<?=$parentId?>');return false;");
 
</script>